//
//  ContactCell.swift
//  PutaoMaternityMatron
//
//  Created by 廖贤志 on 2017/3/21.
//  Copyright © 2017年 Putao. All rights reserved.
//

import UIKit

class ContactCell: UICollectionViewCell {
    
    @IBOutlet weak var btnOrder: UIButton!
    var delegate: HomeViewControllerDelegate?
    override func awakeFromNib() {
        self.btnOrder.layer.masksToBounds = true;
        self.btnOrder.layer.cornerRadius = 60;
        self.btnOrder.titleLabel?.numberOfLines = 2;
        self.btnOrder.setTitle("免费\n预约", for: UIControlState.normal)
    }
    @IBAction func actionOrder(_ sender: Any) {
        self.delegate?.didClikOrder()
    }
    @IBAction func actionContact(_ sender: Any) {
        self.delegate?.didClikContact()
    }
}
